<template>
  <div>
    {{count}}
    <button @click="count++">累加</button>
  </div>
</template>


<script>
export default {
  name:"One",
  data(){
    return{
      count:0,
    }
  },
  mounted() {
    console.log("One-mounted");
  },
  beforeDestroy() {
    console.log("One-beforeDestroy");
  }
}
</script>


<style></style>